Uploaded image for project: 'Qt'
  1. Qt
  2. QTBUG-18082

QTcpSocket reconnect after connection lost stay in ConnectingState

    XMLWordPrintable

Details

    • Bug
    • Resolution: Invalid
    • P2: Important
    • None
    • 4.7.0, 4.7.2
    • Network
    • None
    • GNU/Linux Ubuntu 10.04, 64 bit
      Windows XP SP3 32 bit
      Windows 7 32 bit

    Description

      [Excuse me for my English]

      I have find a bug in QTcpSocket.
      I would like to reconnect automatically my socket when i lost connection (e.g: when the server crashed) but state of QTcpSocket stay in ConnectingState when i lost connection and when i try to reconnect me.

      The server in running
      I launch my program :
      QTcpServer state: HostLookupState
      QTcpServer state: ConnectingState
      QTcpServer state: ConnectedState
      Now, the server crashed :
      QTcpServer error: QAbstractSocket::RemoteHostClosedError
      QTcpServer state: QAbstractSocket::UnconnectedState
      Now, my program try to reconnect to the server
      QTcpServer state: QAbstractSocket::HostLookupState
      QTcpServer state: QAbstractSocket::ConnectingState
      -> QTcpServer stay in this state.

      Attachments

        No reviews matched the request. Check your Options in the drop-down menu of this sections header.

        Activity

          People

            earthdomain Earth Domain (Inactive)
            jirauser41371 user-d5128 (Inactive)
            Votes:
            1 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes